package com.ming.springboot.vo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created by mqsi on 2022/5/8 12:33
 */
@Configuration
@ConfigurationProperties(prefix = "spring.boot.user")
public class User {
	/**
	 * 用户编号
	 */
	private Long userId;
	/**
	 * 用户名称
	 */
	private String userName;
	/**
	 * 年龄
	 */
	private Integer age;
	/**
	 * 家庭住址
	 */
	private String address;
	/**
	 * 生日
	 */
	private String birthday;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "User{" +
				"userId=" + userId +
				", userName='" + userName + '\'' +
				", age=" + age +
				", address='" + address + '\'' +
				", birthday='" + birthday + '\'' +
				'}';
	}
}
